package openbang.account.service.vo;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天信息
 * 以token来区分是否读取过该消息
 * 客户端传回该客户端最大的 curr_token , ChatMsg.toke 比 curr_token 大 的，都应该再返回给 客户端
 * 
 * 该对象要传递到 GWT 客户端
 * 
 * @author aibozeng
 *
 */

@SuppressWarnings("serial")
public class ChatMsg  implements Serializable{
	private String token = "";
    private String msg = "";           //发送内容
    private Date sendDate = new Date();//发送日期
    private String sender = ""; //发送人
    
    public ChatMsg(){    	
    }
	public ChatMsg(String token, String msg, String sender) {
		super();
		this.token = token;
		this.msg = msg;
		this.sender = sender;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}
        
}
